package com.qilin.hammer.util.database;

import static com.qilin.hammer.util.Global.*;
/**
 * 数据库连接创建工厂类
 */
public class DBFactory {
    
    /** 数据库连接对象*/
    private OracleDBConnection orcldbConn;
    
    
    /**
     * 获取数据库连接对象实例
     * 
     * @return
     */
    public DBConnection getDBConnectionInstance(String dbtype){
    	if(dbtype.equals(ORCLE_DATABASE)){
    		if(orcldbConn==null)
    			orcldbConn = new OracleDBConnection();
    		return orcldbConn;
    	}else 
    		//TODO: Add various db connection 
    		return null;
    }
    
    
    public static void main(String[] args){
    	
    }
    
}
